home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 4627 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.9 KB

  1. Path: redstone.interpath.net!mercury!softbase
  2. From: softbase@mercury.interpath.net (Scott McMahan - Softbase Systems)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: why not add getch() to the std C RTL?
  5. Date: 5 Feb 1996 22:50:39 GMT
  6. Organization: Interpath -- Providing Internet access to North Carolina
  7. Message-ID: <4f61k0$446@redstone.interpath.net>
  8. References: <DM85L8.5Jn@emr1.emr.ca> <bnelsonDM887t.LDI@netcom.com>
  9. NNTP-Posting-Host: mercury.interpath.com
  10. X-Newsreader: TIN [version 1.2 PL2]
  11.  
  12. Bob Nelson (bnelson@netcom.com) wrote:
  13.  
  14. : "People often wonder why ANSI C didn't define a standard function to
  15. : get a character if a key has been pressed. Without a standard
  16. : function, every system has a different method and program portability
  17. : is lost.  The argument against providing kbhit() as part of the
  18. : standard is that *it is mostly useful for GAMES software* and there
  19. : are many other terminal I/O features that are not standardized. In
  20. : addition, you don't want to promise a standard library function *that
  21. : SOME OS's will find difficult to provide.* The argument for providing
  22. : it is that it is mostly useful for games software and that games
  23. : writers don't need the myriad of other terminal I/O features that
  24. : could be standardized. Whichever view you hold, it's true the XJ311
  25. : missed an opportunity to reinforce C as the language of choice for a
  26. : generation of programmers writings games on UNIX."
  27.  
  28. : Comments? 
  29.  
  30. Although I think Van Der Linden is great, his belief that the personal
  31. computer is useful for nothing but games and therefore all programming
  32. concerns based on PCs are not worth discussing is a flaw in his
  33. very UNIX-biased book. He'd been better to have left out all the PC
  34. stuff that to trivialize it. This quote isn't as bad as some of them in his
  35. book.
  36.  
  37. I can't imagine any non-trivial interactive program that doesn't need some
  38. kind of immediate non-buffered input.
  39.  
  40. Scott
  41.  
  42.